#pragma once

#include "../umlmodel_global.h"

#include "../umlcore/PartialElement.h"

namespace uml {
class Behavior;

/// <summary>
/// UMLBehaviorDiagram
/// The most general class for UMLDiagrams depicting behavioral elements.
/// </summary>
class UMLMODEL_EXPORT UMLBehaviorDiagram : public PartialElement {

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Properties
    /// <summary>
    /// modelElement getter
    /// Restricts UMLBehaviorDiagrams to showing Behaviors.
    /// </summary>
    shared_ptr<Behavior> modelElement() const;

    /// <summary>
    /// modelElement setter
    /// Restricts UMLBehaviorDiagrams to showing Behaviors.
    /// </summary>
    void setModelElement(shared_ptr<Behavior> value);

private: // Fields
    /// <summary>
    /// modelElement
    /// Restricts UMLBehaviorDiagrams to showing Behaviors.
    /// </summary>
    shared_ptr<Behavior> modelElement_;

};

} // namespace uml
